home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.c
- Subject: Re: Multiple Labels in a #ifdef
- Date: Sun, 04 Feb 1996 00:42:07 GMT
- Organization: Netcom
- Message-ID: <311400a2.169183808@nntp.ix.netcom.com>
- References: <4erh8d$86u@ccnet2.ccnet.com>
- NNTP-Posting-Host: ix-dc15-14.ix.netcom.com
- X-NETCOM-Date: Sat Feb 03 4:41:48 PM PST 1996
- X-Newsreader: Forte Agent .99c/16.141
-
- fladung@emf.net (Fast Eddie) wrote:
-
- > Is is possible to use multiple labels in a #ifdef?
- >
- > This is what I would like to do:
- >
- > #ifdef (DEBUG1 | DEBUG2 | DEBUG3)
- >
- > /* define something if DEBUG1 or DEBUG2 or DEBUG3 is defined */
- >
- > #endif
-
- What you want is
-
- #if defined DEBUG1 || defined DEBUG2 || defined DEBUG3
- /* ... */
- #endif
-
-
- Michael M Rubenstein
-